<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="/img/jd/img/address.css">
	</head>
{#	<script type="text/javascript">#}
{#    function openwin(){#}
{#		window.open("add_new_address?user={{ user }}","_blank","height=400,width=500,top=100,left=350,toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no");}  #}
{#	</script>#}
	<body>
		<div>
			<div id="shortcut">
				<ul class="fr">
					<div id="shortcut-left">
						<li id="sapn">
							<span title="送至">送至:</span><span title="北京"><a href="#">北京</a></span>
						</li>
					</div>
					<div id="shortcut-right">
						<li id="ttbar-login">
							<a href="#" class="dl-a">{{ user }}</a>
						</li>
						<li class="spacer">|</li>
						<li class="shortcut_btn fore2">
							<div class="dt">
								<a href="#">我的订单</a>
							</div>
						</li>
						<li class="spacer">|</li>
						<li id="ttbar-myjd">
							<div class="dt cw-icon">
								<a href="#">我的京东</a>
								<i class="iconfont"></i>
							</div>
							<ul>
								<li>
									<a href="#">消息</a>
								</li>
								<li>
									<a href="#">我的问答</a>
								</li>
								<li>
									<a href="#">我的购物</a>
								</li>
							</ul>
						</li>
						<li class="spacer">|</li>
						<li class="shortcut_btn fore4">
							<div class="dt">
								<a href="#">京东页面</a>
							</div>
						</li>
						<li class="spacer">|</li>
						<li class="shortcut_btn fore5">
							<div class="dt cw-icon">
								<a href="#">企业采购</a>
								<i class="iconfont"></i>
							</div>
						</li>
						<li class="spacer">|</li>
						<li class="shortcut_btn fore6">
							<div class="dt cw-icon">
								<a href="#">手机京东</a>
								<i class="iconfont"></i>
							</div>
							<ul>
								<li>
									<a href="#">同步登陆</a>
								</li>
								<li>
									<a href="#">手机绑定</a>
								</li>
								<li>
									<a href="#">接触关联</a>
								</li>
							</ul>
						</li>
						<li class="spacer">|</li>
						<li class="shortcut_btn fore7">
							<div class="dt cw-icon">
								<a href="#">关注京东</a>
								<i class="iconfont"></i>
							</div>
							<ul>
								<li>
									<a href="#">主题节日</a>
								</li>
								<li>
									<a href="#">折扣促销</a>
								</li>
								<li>
									<a href="#">满减活动</a>
								</li>
							</ul>
						</li>
						<li class="spacer">|</li>
						<li class="shortcut_btn fore8">
							<div class="dt cw-icon">
								<a href="#">客户服务</a>
								<i class="iconfont"></i>
							</div>
							<ul>
								<li>
									<a href="#">客户</a>
								</li>
								<li>
									<a href="#">商户</a>
								</li>
								<li>
									<a href="#">建议信</a>
								</li>
							</ul>
						</li>
						<li class="spacer">|</li>
						<li class="shortcut_btn fore9">
							<div class="dt cw-icon">
								<a href="#">网站导航</a>
								<i class="iconfont"></i>
							</div>
							<ul>
								<li>
									<a href="#">生活服务</a>
								</li>
								<li>
									<a href="#">特色主题</a>
								</li>
								<li>
									<a href="#">更多选择</a>
								</li>
							</ul>
						</li>
				</ul>
				</div>
			</div>
			<div id="jd-logo">
				<div class="w">
					<div id="w-img">
						<img src="img/jd/img/address-logo.png" />
						<a href="#" class="fore2">我的京东</a>
						<a href="is_cookie?p=1" class="fore3">返回京东首页</a>
					</div>
					<div class="navitems">
						<ul>
							<li><a href="#">首页</a></li>
							<li><a href="#">账户设置</a></li>
							<li><a href="#">社区</a></li>
							<li><a href="#">消息</a></li>
						</ul>
					</div>
					<div class="nav-r">
						<div id="search">
							<input type="text" id="key" />
							<button class="search-button" value="搜索">搜索</button>
						</div>
						<div id="search-right"><a href="#">我的购物车</a></div>
					</div>
				</div>
			</div>
			<div id="container">
				<div id="content">
					<div class="content-l">
						<div id="menu">
							<ul>
								<li class="lia">设置</li>
								<li><a href="update_information?user={{ user }}&p=1">个人信息</a></li>
								<li><a href="#">账户安全</a></li>
								<li><a href="#">我的尺码</a></li>
								<li><a href="#">账号绑定</a></li>
								<li class="lib"><a href="#">收获地址</a></li>
								<li><a href="#">健康档案</a></li>
								<li><a href="#">分享绑定</a></li>
								<li><a href="#">邮件订阅</a></li>
								<li><a href="#">应用授权</a></li>
								<li><a href="#">快捷支付</a></li>
								<li><a href="#">赠票资质</a></li>
								<li><a href="#">企业发票</a></li>
								<li><a href="#">采购需求单</a></li>
							</ul>
						</div>
					</div>
					<div class="content-r">
						<div id="add"><a href="add_new_address?user={{ user }}&p=1">新增收货地址</a></div><br/>
                        <table>
                            {% for i in list4 %}
                                <tr>
                                    <td>姓名：</td>
                                    <td>{{ i.name }}</td>
                                </tr>
                                <tr>
                                    <td>收货地址：</td>
                                    <td>{{ i.adress }}</td>
                                </tr>
                                <tr>
                                    <td>电话：</td>
                                    <td>{{ i.phone }}</td>
                                </tr>
                                <tr>
                                    <td>邮箱：</td>
                                    <td>{{ i.email }}</td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="button" value="修改"
                                               onclick="window.location.href='to_update_add_address?id={{ i.id }}&user={{ user }}&p=1'" />
                                        <input type="button" value="删除"
                                                           onclick="window.location.href='remove_address?id={{ i.id }}&user={{ user }}&p=1'" />
                                    </td>
                                </tr>

                                <tr>
                                    <td colspan="2"><hr></td>
                                </tr>
                            {% endfor %}
                        </table>
                    <div id="fenye">
                    <a href = "address?user={{ user }}&p={{ p2 }}">上一页</a>
                         {{ p }}/{{ page }}
                    <a href = "address?user={{ user }}&p={{ p1 }}">下一页</a>
                    </div>
					</div>
                </div>
			</div>
			<div id="foot">
				<img src="img/jd/img/content-r.png" />
			</div>
		</div>
	</body>
</html>